package cn.edu.fzu.homemaking.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.edu.fzu.homemaking.domain.enums.ServerModeEnum;
import cn.edu.fzu.homemaking.domain.enums.SysCompanyStatusEnum;
import cn.edu.fzu.homemaking.web.Result;

/**
 * @author yifan
 * @date 2023/4/8
 */
@FeignClient(value = "company")
public interface CompanyApi {

    @GetMapping("/api/company/companyserver/list")
    Result getCompanyServerList(@RequestParam("companyId") Long companyId, @RequestParam("labelId") Long labelId,
                                @RequestParam("name") String name,
                                @RequestParam("chargeMode") ServerModeEnum chargeMode,
                                @RequestParam("status") SysCompanyStatusEnum status,
                                @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);

}
